
<?php
	//$page=$_REQUEST['page'];
	$nsx="";
	if(isset($_REQUEST['nsx']))
	{
		$nsx=$_REQUEST['nsx'];
	}
	$loai="";
	if(isset($_REQUEST['loai']))
	$loai=$_REQUEST['loai'];
	?>
<table width="600" border="0">
<?php
	if($nsx <>""|| $loai <>""){
	$dsSP=DataProvider::ExecuteQuery("select * from sanpham where BIXOA=0 and MAHSX =".$nsx." and MALSP like '%".$loai."%'");
	while($row = mysql_fetch_array($dsSP,MYSQL_ASSOC))
	{?>
		<tr align="center">
		<td width="200" class="sanpham">
		<?php
			echo $row['TENSP']."<br />";
			echo $row['GIA']."<br />";
			if($row['SOLUONGTON']>0)
			echo "Còn ".$row['SOLUONGTON']." sản phẩm <br />";
			else echo "Hết Hàng <br />";
			echo "Thêm vào giỏ hàng";
		?> </td></tr>
	<?php }
}
?>
</table>
